package com.xyb.controller;

import com.xyb.client.ChartClient;
import com.xyb.entity.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("test")
public class TestController {

    @Resource
    private ChartClient chartClient;

    @GetMapping("test")
    public String test(){
        Result result = chartClient.selectBizChart();
        System.out.println("result = " + result);
        return "success ";
    }
}
